package com.jeewms.www.tms.constance;

import com.jeewms.www.tms.R;
import com.jeewms.www.tms.util.StringUtil;

/**
 * Created by 13799 on 2018/6/2.
 */

public class Constance {
    public final static int CAMERAREQUESTCODE=100;

    //测试站

   public  static String appVersion = "2.0";
//       public static String COMMON_URL = "http://172.17.4.195:8081/zzwms";

       public static String COMMON_URL = "http://192.168.200.100:8080/zzwms";
 // public static String COMMON_URL = "http://192.168.200.101:8080/zzwms";
 //public static String COMMON_URL = "http://192.168.254.136:8080/zzwms"; //测试系统连接SAP 测试机.
 //   public static String COMMON_URL = "http://59.60.10.20:8088/zzwms";
    //主界面按钮图片
    public static final int[] btnImgList = {R.drawable.rk,
            R.drawable.cpjh, R.drawable.ds1, R.drawable.sj33,
            R.drawable.xj, R.drawable.kccx, R.drawable.pd,
            R.drawable.yc1, R.drawable.yk, R.drawable.yl, R.drawable.cpth};
    //主界面按钮名字
    public static final String[] btnNameList = {ClassHolder.SHANGJIA,
            ClassHolder.CHENGPINXIAJIA, ClassHolder.FAHUOXIAJIA, ClassHolder.CAIGOUTUIHUO,
            ClassHolder.XIAJIA, ClassHolder.KUCUNCHAXUN, ClassHolder.PANDIAN,
            ClassHolder.YICHU, ClassHolder.JIT, ClassHolder.YLSJ,ClassHolder.CHENGPINTUIHUO
    }; //主界面按钮名字YLYC
    public static final String[] btnTypeList = {
            "LLSJ", "JHXJ", "DSXJ",
            "PZSJ","PZXJ","KCCX",
        //    "KCPD","YC", "YLSJ", "YLYC","CPTH","JIT",
            "KCPD","YC", "JIT", "YLYC","CPTH",
            //这个是否有顺序要求.
    };

    public static void setBaseUrl(String baseUrl) {
        if (!StringUtil.isEmpty(baseUrl)) {
            COMMON_URL = baseUrl;
        }
    }

    //登录
    public static final String LOGIN = "/rest/tokens/login";

    public static final String wmSttInGoodsControllerc = "/rest/wmapi/docltcreate";
    //装车复核保存rest/wmSttInGoodsController/change
    //商品信息保存
    //移储保存
    //镭射清单http://localhost:8080/zzwms/rest/wmapi/getdoc/LLSJ?docid=1&searchstr1=xxx&searchstr2=xxx;
    public static final String tSapLsqdController = "/rest/wmapi/getdoc/";
    //库存清单
    public static final String tSapStockController = "/rest/tSapStockController";
    //库存清单
    public static final String tSapLtttController = "/rest/tSapLtttController";

    //登录
    public static String getLoginURL() {
        return COMMON_URL + LOGIN;
    } //登录



    public static String getwmSttInGoodsControllercURL() {
        return COMMON_URL + wmSttInGoodsControllerc;
    }


    public static String gettSapLsqdControllerURL() {
        return COMMON_URL + tSapLsqdController;
    }

    public static String gettSapStockControllerURL() {
        return COMMON_URL + tSapStockController;
    }

    public static String gettSapLtttControllerURL() {
        return COMMON_URL + tSapLtttController;
    }

    public static class SHAREP {
        /**
         * SharedPreferences
         */
        public static final String SHAREDSAVE = "save";

        //登录名
        public static final String LOGINNAME = "userName";
        //登录密码
        public static final String PASSWORD = "passWord";
        //地址
        public static final String HTTPADDRESS = "httpAddress";
        public static final String HTTPADDRESS1 = "httpAddress1";

    }
}
